import request from '@/utils/request'

// 查询国家地区定义列表
export function listFndCountry(query) {
  return request({
    url: '/basic/fndCountry/list',
    method: 'get',
    params: query
  })
}

// 查询国家地区定义详细
export function getFndCountry(country) {
  return request({
    url: '/basic/fndCountry/' + country,
    method: 'get'
  })
}

// 新增国家地区定义
export function addFndCountry(data) {
  return request({
    url: '/basic/fndCountry',
    method: 'post',
    data: data
  })
}

// 修改国家地区定义
export function updateFndCountry(data) {
  return request({
    url: '/basic/fndCountry',
    method: 'put',
    data: data
  })
}

// 删除国家地区定义
export function delFndCountry(country) {
  return request({
    url: '/basic/fndCountry/' + country,
    method: 'delete'
  })
}
